﻿namespace ConsoleApp3
{
    internal class Program
    {
        static void Main(string[] args)
        {
            int n;
            for(n = 100; n <= 999; n++)
            {
                int i = n / 100;
                int j = (n / 10) % 10;
                int k = n % 10;

                int sum = (int)(Math.Pow(i, 3) + Math.Pow(j, 3) + Math.Pow(k, 3));
                if (n == sum)
                {
                    Console.Write(n+" ");
                }
            }
        }
    }
}
